MCSD Certification Toolkit (Exam 70-483) by Tiberiu Covaci & Rod Stephens & Vincent Varallo & Gerry O'Brien

MCSD Certification Toolkit (Exam 70-483) by Tiberiu Covaci & Rod Stephens & Vincent Varallo & Gerry O'Brien

Author:Tiberiu Covaci & Rod Stephens & Vincent Varallo & Gerry O'Brien
Language: eng
Format: epub
Publisher: Wiley Publishing, Inc.
Published: 2013-04-21T16:00:00+00:00


The workflow of using the BackgroundWorker class is as follows:

1. Create a method that follows the DoWorkEventHandler signature.

2. In this method call the long-running operation. When the operation finishes, assign the result of the operation to the Result property of the DoWorkEventArgs parameter.

3. Create a BackgroundWorker instance.

4. Use the method you created on the first step to subscribe to the DoWork event.

5. Create a method that follows the RunWorkerCompletedEventHandler signature.

6. In this method, get the result of the long-running operation and update the UI.

7. Use this method to subscribe to the RunWorkerCompleted event so that your code knows when the long-running operation is completed. Before reading the result, you must make sure that your long-running operation did not throw an exception by checking the Error property of the RunWorkerCompletedEventArgs parameter. If the property is null, it means that no exception was thrown.

8. Optionally, create a method to be used to report progress, following the ProgressChangedEventHandler signature and subscribing this method to the ProgressChanged event.

9. Call the RunWorkerAsync method to start the background work.

10. If the work supports cancellation and you want to cancel the work, you can call the CancelAsync method.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9806)
Red Hat Certified Specialist in Services Management and Automation EX358 Exam Guide by Eric McLeroy(6333)
The KCNA Book by Nigel Poulton(4338)
Microsoft Security, Compliance, and Identity Fundamentals Exam Ref SC-900 by Dwayne Natwick(3698)
Designing and Implementing Microsoft Azure Networking Solutions by David Okeyode(3600)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart and Joe Anich(3552)
Microsoft Security Operations Analyst Exam Ref SC-200 Certification Guide by Trevor Stuart & Joe Anich(3474)
TCP IP by Todd Lammle(2998)
Microsoft Power BI Data Analyst Certification Guide by Ed Corcoran Orrin Edenfield(2928)
Unity Certified Programmer: Exam Guide by Philip Walker(2648)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2531)
Networking A Beginner's Guide by Bruce Hallberg(2221)
Microsoft Power Platform Solution Architect's Handbook by Hugo Herrera(2051)
31 Days Before Your CompTIA A+ Exams (Shanette Luellen's Library) by Benjamin Patrick Conry(1871)
CompTIA A+ Practice Tests Core 1 (220-1101) and Core 2 (220-1102) by Ian Neil and Mark Birch(1806)
MCSA Windows Server 2016 Study Guide: Exam 70-741 by William Panek(1672)
PHP 7 Zend Certification Study Guide by Andrew Beak(1654)
Healthcare Information Security and Privacy (All-In-One) by Sean Murphy(1555)
CompTIA A+ Certification Guide (220-901 and 220-902) by Matthew Bennett(1532)
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition by Asghar Ghori(1495)